/*
 * Area.h
 *
 *  Created on: 2011-02-20
 *      Author: Basse
 */

#ifndef AREA_H_
#define AREA_H_

#include "Entity.h"
#include "Tile.h"
#include "Engine.h"
#include <fstream>
#include <string>
#include <vector>
using namespace std;

class Entity;
class Engine;
class Area {
	int areaWidth;
	int areaHeight;
	string name;
	string areaMapPath;
	fstream myArea;
	vector<Entity*> entity;

public:
	Area(string mapPath);
	~Area();

	void setAreaWidth(int w){ areaWidth = w; };
	void setAreaHeight(int h){ areaHeight = h; };

	int getAreaWidth(){ return areaWidth; };
	int getAreaHeight(){ return areaHeight; };
	string getName(){ return name; };
	vector<Entity*> getEntities(){ return entity; };

	bool load(Engine* e);

};

#endif /* AREA_H_ */
